<?php
/**
 * 获取token
 */
require_once dirname(dirname(__DIR__)) . "/common.php";
use app\cls\tom\Response;
use app\cls\tom\Tools;
use app\cls\tom\SysResource;
use app\cls\tom\RedisKeyFactory;

$userInfo=$_REQUEST['uuid'];
if(empty($userInfo)){
    Response::output(-1,"缺少参数");
}
$redis = SysResource::getRedis();
$key = RedisKeyFactory::getUserTokenKey($userInfo);
$res=$redis->get($key);
$res=json_decode($res,true);
Response::output(0,"成功",$res);